package com.example.backend.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import lombok.Data;

@Data //简化类方法的构造
public class SysDept {

    @TableId(type = IdType.AUTO)
    private Long id;//主键
    private String name;//部门名称
    private Long parentId;//父节点id
    private String treePath;//父节点id路径
    private Integer sort;//显示顺序
    private Integer status;//状态(1:正常;0:禁用)
    private Integer deleted;//逻辑删除标识(1:已删除;0:未删除)
    private Long createBy;
    private Long updateBy;
}
